//
//  CustomButton.h
//  产业头条
//
//  Created by ZJ on 16/12/22.
//  Copyright © 2016年 ZJ. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CustomButton;
typedef NS_ENUM(NSInteger, CustomButtonState) {
    CustomButtonStateNormal = 1000,
    CustomButtonStateSelected
};

@protocol CustomButtonDelegate <NSObject>

- (void)action_customButtonClick:(CustomButton *)sender;

@end


@interface CustomButton : UIView
/** 代理 */
@property (nonatomic, weak) id<CustomButtonDelegate> delegate;

/** imageview */
@property (nonatomic, strong) UIImageView *imageView;
/** title*/
@property (nonatomic, strong) UILabel *titleLabel;
/** selected */
@property (nonatomic, assign) BOOL selected;

- (void)setImage:(UIImage *)image forState:(CustomButtonState)State;

- (void)setTitle:(NSString *)title forState:(CustomButtonState)State;

- (void)setTitleColor:(UIColor *)titleColor forState:(CustomButtonState)State;



@end
